home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
ss14.zip
/
SS.MAK
< prev
next >
Wrap
Makefile
|
1991-01-24
|
2KB
|
118 lines
PROJ = SS
PROJFILE = SS.MAK
DEBUG = 0
PWBRMAKE = pwbrmake
NMAKEBSC1 = set
NMAKEBSC2 = nmake
LINKER = link
ILINK = ilink
LRF = echo > NUL
BIND = bind
RC = rc
IMPLIB = implib
LFLAGS_G = /BATCH /ALIGN:16
LFLAGS_D = /CO /INC /NOF /NOP
LFLAGS_R = /F /PACKC /PACKD /BATCH
MAPFILE_D = NUL
MAPFILE_R = NUL
CC = cl
CFLAGS_G = /W3 /Gw /D_WINDOWS /Zp /BATCH
CFLAGS_D = /Od /Zi .
CFLAGS_R = /Os /Og /Oe /FPc /Gs
LLIBS_R = /NOD:SLIBCE SLIBCEW
LLIBS_D = /NOD:SLIBCE SLIBCEW
LLIBS_G = LIBW.LIB sshook.lib
ASM = masm
AFLAGS_G = /Mx /T
AFLAGS_D = /Zi
DEF_FILE = SS.DEF
OBJS = SS.obj
RESS = SS.res
SBRS = SS.sbr
all: $(PROJ).exe
.SUFFIXES: .c .sbr .rc .res .obj
SS.obj : SS.C c:\windev\include\windows.h c:\windev\include\stdio.h\
c:\windev\include\stdlib.h c:\windev\include\string.h\
c:\windev\include\time.h ss.h
SS.sbr : SS.C c:\windev\include\windows.h c:\windev\include\stdio.h\
c:\windev\include\stdlib.h c:\windev\include\string.h\
c:\windev\include\time.h ss.h
SS.res : SS.RC c:\windev\include\windows.h ss.h ss.dlg
$(PROJ).bsc : $(SBRS)
$(PWBRMAKE) @<<
$(BRFLAGS) $(SBRS)
<<
$(PROJ).exe : $(DEF_FILE) $(OBJS) $(RESS)
!IF $(DEBUG)
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_D)
$(LLIBS_G: = +^
) +
$(LLIBS_D: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_D);
<<
!ELSE
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_R)
$(LLIBS_G: = +^
) +
$(LLIBS_R: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_R);
<<
!ENDIF
!IF $(DEBUG)
$(ILINK) -a -e "$(LINKER) @$(PROJ).lrf" $@
!ELSE
$(LINKER) @$(PROJ).lrf
!ENDIF
$(RC) $(RESS) $@
.c.sbr :
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FR$@ $<
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FR$@ $<
!ENDIF
.rc.res :
$(RC) /r $<
.c.obj :
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /Fo$@ $<
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /Fo$@ $<
!ENDIF
run: $(PROJ).exe
WIN $(PROJ).exe $(RUNFLAGS)
debug: $(PROJ).exe
WIN CVW $(CVFLAGS) $(PROJ).exe $(RUNFLAGS)